0:00–0:10
Recap
0:10–0:35
Lecture
0:35–1:45
Lab 7-D
1:45–1:55
Bonus
1:55–2:00
Debrief
0:00 – 0:10Recap · 10 min
Day 3 review & the data exfiltration gap
- Ask: "The attack simulation showed that 3 out of 10 Lakeview Logistics users clicked a phishing link. Priya Nair (Finance Manager) was one of them. Priya has access to spreadsheets with Lakeview's payroll data and customer credit card numbers. What is the risk if she is compromised — not just to Priya's account, but to that data?" — the data itself can leave the organisation, either by an attacker exfiltrating it or by a compromised user accidentally sending it.
- Ask: "Tom Bellamy (Accountant) accidentally attaches a spreadsheet with 50 customer credit card numbers to an email and sends it to a client contact. Which of this week's controls would have caught that?" — none so far. Safe Attachments inspects for malware, not for sensitive data patterns. The data left the organisation unchallenged.
- Frame: DLP is the data governance layer. It scans content for sensitive information patterns — credit card numbers, bank accounts, national ID numbers, health data — and intercepts transfers based on policy. One DLP policy covers Exchange, SharePoint, OneDrive, and Teams simultaneously. Students who configured each of those workloads separately now see unified cross-workload data governance in a single policy.
0:10 – 0:35Lecture · 25 min
DLP architecture — conditions, actions, policy tips, and endpoint DLP
How a DLP policy evaluates content
Content created
Email, file, chat, etc.
→
DLP scans
Checks conditions: SIT matches, volume, recipient, location
→
Match found?
Conditions met — rule fires
→
Action taken
Block, restrict, notify, audit
+
Policy tip
User notified inline
- Sensitive Information Types (SITs) — Microsoft's library of 300+ pre-built patterns for detecting sensitive data: credit card numbers (all major networks), bank account numbers (country-specific), national ID numbers, passport numbers, health data, and many more. Each SIT uses a combination of regular expressions, keyword proximity, and checksum validation. You can also create custom SITs with your own regex patterns. For Lakeview Logistics the relevant SITs are Credit Card Number and New Zealand Bank Account Number.
- DLP policy structure — a policy contains one or more rules. Each rule has: conditions (what must be true for the rule to fire — SIT match, volume threshold, sender/recipient), exceptions (conditions that override the rule), and actions (what happens when conditions are met). Rules fire in priority order — the first matching rule determines the action.
- Actions — four main types: Block (prevent send/share entirely), Block with override (block but allow user to override with a business justification), Restrict access (remove sharing permissions on a file), Notify only (audit the event and notify the user or admin but allow the action). Starting with Notify only is a best practice for new policies — it lets you measure how often the policy would fire before enforcing blocks.
- Policy tips — inline notifications shown to users in Outlook, Word, Excel, SharePoint, and Teams when their content matches a DLP rule. The user sees a banner before sending or sharing, informing them that the content may violate policy. Policy tips are the most important user-facing feature of DLP — they turn DLP from an invisible background process into an educational tool that teaches users what not to share.
- Endpoint DLP — extends DLP policy enforcement to the device level, applying to Windows 10/11 devices enrolled in Intune and onboarded to Defender for Endpoint. Endpoint DLP can monitor and restrict: clipboard copy to unauthorised apps, USB device transfers, printing to non-corporate printers, uploading to non-sanctioned cloud storage, and accessing files in specific network shares. It requires the same Intune + MDE onboarding completed in Week 6 and Day 2.
- DLP workload coverage — a single Purview DLP policy can apply to Exchange Online (email), SharePoint Online (document libraries), OneDrive (personal cloud storage), Microsoft Teams (chat and channel messages), Endpoint devices (WIN-CLIENT-01 with MDE), and Microsoft 365 Copilot. Students who configured each of these workloads separately across Weeks 3–6 now govern all of them with one policy.
| Workload | What DLP scans | Actions available | Weeks 3–6 connection |
| Exchange Online | Email body, attachments, subject | Block, block with override, notify, encrypt | Week 3 — Exchange admin, mail flow rules |
| SharePoint Online | Document library files, list items | Block external sharing, restrict access, notify | Week 4 — SharePoint sites, external sharing |
| OneDrive | Files in OneDrive (including KFM-redirected Desktop/Docs) | Block external sharing, restrict access, notify | Week 4 — OneDrive, Lab 6-C KFM |
| Teams | Chat messages, channel posts, file attachments | Block message, notify | Week 5 — Teams policies, channels |
| Endpoint devices | File operations on enrolled devices (copy, print, upload, USB) | Block, audit, warn with override | Week 6 — Intune, Lab 7-B — MDE onboarding |
Instructor note: The policy tip demonstration is the most impactful moment of Day 4. Paste a fake credit card number into an Outlook email draft on WIN-CLIENT-01 — after a few seconds, a yellow policy tip banner appears at the top of the compose window, before the email is sent. This makes DLP feel real and immediate. Fake card numbers: Visa test — 4111 1111 1111 1111, Mastercard test — 5500 0000 0000 0004. Both are valid SIT matches but not real cards.
0:35 – 1:45Guided lab · 70 min
Lab 7-D: Financial data DLP policy and endpoint DLP
Students enable the audit log (required for DLP alerts), create a cross-workload DLP policy protecting credit card and NZ bank account data, test it with a synthetic document, configure endpoint DLP to block USB transfers, and review DLP alerts in the Purview compliance portal.
- Step 1 — Enable the unified audit log (5 min)
Navigate to purview.microsoft.com → Audit → Start recording user and admin activity (if not already enabled from the Secure Score action in Lab 7-C).
This is a prerequisite for DLP alert generation. Without it, DLP policy matches are not logged and alerts do not appear.
- Step 2 — Create the financial data DLP policy (25 min)
Navigate to purview.microsoft.com → Data loss prevention → Policies → + Create policy.
· Template: Financial → Credit Card Number (Microsoft-provided template — review what it pre-configures)
· Name: LL — Financial Data Protection
· Locations: enable Exchange email, SharePoint sites, OneDrive accounts, Teams chat and channel messages, Devices
Edit the policy rules. The template creates a default rule — review it, then customise:
· Add a second SIT: New Zealand Bank Account Number (in addition to Credit Card Number)
· Low volume rule (1–9 instances): Action = Notify user, send admin alert
· High volume rule (10+ instances): Action = Block the content, notify user, send admin alert
· Enable policy tips for Exchange (Outlook) and SharePoint/OneDrive
· Mode: Turn the policy on immediately (not test mode)
Save.
- Step 3 — Test the DLP policy with a synthetic document (15 min)
Create a test document with synthetic credit card data. On WIN-CLIENT-01, open Notepad or Word and create a file with the following content (these are test numbers — not real card data):
Customer: Tom Bellamy
Card: 4111 1111 1111 1111 (Visa)
Card: 5500 0000 0000 0004 (MC)
Account: 01-0242-0100175-00 (NZ Bank)
Save as Finance-Test.docx. Then test three scenarios:
Test A — Email: Open Outlook on WIN-CLIENT-01. Compose a new email to an external address (e.g. a personal email or made-up external address). Attach Finance-Test.docx. Observe the policy tip in the compose window.
Test B — SharePoint: Upload Finance-Test.docx to the Finance SharePoint site document library. Wait 2–5 minutes. Check whether sharing is restricted and whether a DLP alert appears.
Test C — Teams: Open Teams and attempt to share Finance-Test.docx in the Finance team channel. Observe the DLP notification.
- Step 4 — Configure endpoint DLP for USB blocking (15 min)
Navigate to purview.microsoft.com → Data loss prevention → Endpoint DLP settings.
Confirm WIN-CLIENT-01 appears in the Onboarded devices list (it should — onboarded to MDE in Lab 7-B).
Return to Policies → LL — Financial Data Protection → Edit.
Under Devices locations, add the following endpoint activity restriction:
· Activity: Copy to a removable USB device → Action: Block
· Activity: Upload to cloud service domains or access by unallowed browsers → Action: Audit only (observe before blocking)
Save the policy update.
- Step 5 — Review DLP alerts in Purview (10 min)
Navigate to purview.microsoft.com → Data loss prevention → Alerts.
Review any alerts generated from the test scenarios in Step 3. Click an alert to explore:
· Alert details: which policy and rule fired
· Matched content: a preview of the sensitive data that triggered the match (redacted)
· User: who performed the action
· Workload: which service (Exchange/SharePoint/Teams)
· Severity and status
Record findings in the lab handout.
DLP policy propagation time: After saving a DLP policy, it can take up to 1 hour to fully propagate across all workloads. Policy tips in Outlook typically appear within 5–15 minutes. SharePoint and Teams enforcement may take longer. If a policy tip doesn't appear immediately, wait 10 minutes and retry.
The Week 3–6 payoff: One DLP policy now governs all five workloads simultaneously. The Exchange mailboxes configured in Week 3, the SharePoint libraries from Week 4, the OneDrive KFM-redirected folders from Lab 6-C, the Teams channels from Week 5, and the Intune-managed endpoint from Week 6 are all under a single data governance rule. This is the unified M365 governance stack in action.
1:45 – 1:55Bonus · 10 min
⭐ Bonus: Custom SIT and DLP activity explorer
⭐ Bonus A — Create a custom Sensitive Information Type
- Navigate to purview.microsoft.com → Data classification → Sensitive info types → + Create sensitive info type
- Name: LL — Lakeview Employee ID. Create a pattern that matches a fictional Lakeview Logistics employee ID format: LL-\d{5} (LL- followed by exactly 5 digits, e.g. LL-10023)
- Add a supporting keyword element: require the word "Employee" or "ID" within 300 characters of the pattern match to reduce false positives
- Test the SIT using the test panel — paste Employee LL-10023 and confirm it detects. Then add the SIT to the LL — Financial Data Protection policy as an additional condition
- Lab Journal: what are the risks of a regex that is too broad? What are the risks of one that is too narrow? How would you tune a custom SIT in production?
⭐ Bonus B — DLP Activity Explorer
- Navigate to purview.microsoft.com → Data classification → Activity explorer
- Filter by: Activity type = DLP rule matched. Review the events generated by today's lab tests
- Filter by: Workload = Exchange. Then filter by Workload = SharePoint. Compare the event formats
- Lab Journal: explain the difference between DLP Alerts (in Data loss prevention → Alerts) and Activity Explorer events. When would you use each? What does Activity Explorer show that Alerts doesn't?
1:55 – 2:00Debrief · 5 min
Reflection & preview
- Ask: "Tom Bellamy accidentally emails the Finance-Test.docx to a client. DLP blocks it. He calls the helpdesk saying it's urgent — he needs to send this file right now. What are his options?" — he can override with a business justification (if the policy allows override), he can request the IT admin to create an exception, or the IT admin can temporarily exclude his account from the policy scope. All of these leave an audit trail.
- Ask: "Priya Nair's laptop is compromised. The attacker copies the Finance spreadsheet to a USB drive. Endpoint DLP is configured to block USB transfers. What happens?" — the copy is blocked on WIN-CLIENT-01. A DLP alert fires. An endpoint DLP event appears in Activity Explorer. The attacker fails to exfiltrate via USB but still has access to the file on the device — device isolation (Lab 7-B Bonus) becomes relevant here.
- Preview Day 5: DLP protects data in transit and in use. Sensitivity labels protect data at rest — they apply metadata and protection directly to files and emails, following them wherever they go. Day 5 introduces labels and then moves straight into the Week 7 assessment, which involves a combined incident: a phishing email that bypassed controls and a file that was shared externally without DLP catching it.
Learning outcomes — by end of Day 4, students can…
Explain DLP architectureDescribe SITs, rules, conditions, actions, and policy tips in a DLP policy
Create a DLP policyBuild a cross-workload financial data policy covering Exchange, SharePoint, OneDrive, Teams, and Devices
Test a DLP policyGenerate synthetic sensitive data and verify policy tip and block behaviour across workloads
Configure endpoint DLPAdd USB transfer blocking to an existing DLP policy for Intune-managed devices
Review DLP alertsNavigate Purview DLP alerts and read alert metadata including matched content and workload
Explain the workload connectionDescribe how DLP unifies governance across all workloads configured in Weeks 3–6
What you need ready
purview.microsoft.com accessible
WIN-CLIENT-01 enrolled in Intune and onboarded to MDE (Lab 7-B)
All 10 user accounts with E5 licences assigned
Finance SharePoint site active (from Week 4)
Outlook accessible on WIN-CLIENT-01
Unified audit log enabled (Lab 7-C Step 3 or enable now)